<?php
use yii\widgets\ActiveForm;
?>
<div class="docs-main">
    <table id="tablesaw" class="tablesaw table yx-table1 yx-table3 table-striped with-check" >
        <thead>
        <tr class="yx-bgd2f6ec">
            <th><?= \Yii::t('zhtfrontend', '课程'); ?></th>
            <th><?= \Yii::t('zhtfrontend', '订单'); ?></th>
            <th><?= \Yii::t('zhtfrontend', '上课状态'); ?></th>
            <th><?= \Yii::t('zhtfrontend', '使用奖学金'); ?></th>
        </tr>
        </thead>
        <?php if($class):?>
            <tr>
                <td style="text-align: center"><?=$class['name']?></td>
                <td style="text-align: center"><?=$class['order_sn']?></td>
                <td style="text-align: center"><?php
                    switch($class['status']){
                        case 0:
                            echo '未开课';
                            break;
                        case 1:
                            echo '上课中';
                            break;
                        case 2:
                            echo '已结课';
                            break;
                    }
                    ?></td>
                <td style="text-align: center"><?=$class['scholarship_money']?></td>
            </tr>
        <?php endif;?>
    </table>
</div>
    <?php $form = ActiveForm::begin(['enableAjaxValidation' => true, 'enableClientValidation' => false,'options'=>['class'=>'form-validate']]); ?>
        <div class="yx-clear">
            <label class="zx-label" style="width: 20% !important"><?= $model->attributeLabels()['money']; ?></label>
            <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
                <?=$model->money ?>
            </div>
        </div>
        <div class="yx-clear">
            <label class="zx-label" style="width: 20% !important"><?= $model->attributeLabels()['processing_status']; ?></label>
            <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
                <?= $form->field($model,'processing_status',['template' => '{input}{error}{hint}'])->dropDownList($status_arr,['prompt' => '请选择'])?>
            </div>
        </div>

        <div class="yx-clear">
            <label class="zx-label" style="width: 20% !important"><?= $model->attributeLabels()['remarks']; ?></label>
            <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
                <?= $form->field($model, 'remarks', ['template' => '{input}{error}{hint}'])->textarea(['rows' => 2, 'style' => 'width:220px', 'class' => 'input-textarea']) ?>
            </div>
        </div>
    <div style="display: none"><button type="submit" id="dosubmit">提交</button></div>
    <?php ActiveForm::end();?>
